if __name__ == "__main__":

    from chaos_mesh import ChaosMeshConnection, CHAOS_MESH
    from datetime import datetime, timedelta
    import pandas as pd

    cm_conn = ChaosMeshConnection(CHAOS_MESH)

    # end_time = datetime.now()
    # start_time = end_time - timedelta(days=80)
    start_time = datetime.fromtimestamp(1716076900)
    end_time = datetime.fromtimestamp(1716078900)
    # end_time = end_time - timedelta(days=6)

    data = cm_conn.create_ground_truth(start_time.timestamp(), end_time.timestamp())
    pd.DataFrame(data).to_csv("./ground_truth.csv", index=False)
